Optimal. Leaf size=63 \[ -\frac {2}{3} x^2 \sqrt {1-x^2}-\frac {1}{4} x^3 \sqrt {1-x^2}-\frac {1}{24} (32+21 x) \sqrt {1-x^2}+\frac {7}{8} \sin ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1823, 847, 794,
222} \begin {gather*} \frac {7 \text {ArcSin}(x)}{8}-\frac {2}{3} \sqrt {1-x^2} x^2-\frac {1}{24} (21 x+32) \sqrt {1-x^2}-\frac {1}{4} \sqrt {1-x^2} x^3 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 794
Rule 847
Rule 1823
Rubi steps
\begin {align*} \int \frac {x^2 (1+x)^2}{\sqrt {1-x^2}} \, dx &=-\frac {1}{4} x^3 \sqrt {1-x^2}-\frac {1}{4} \int \frac {(-7-8 x) x^2}{\sqrt {1-x^2}} \, dx\\ &=-\frac {2}{3} x^2 \sqrt {1-x^2}-\frac {1}{4} x^3 \sqrt {1-x^2}+\frac {1}{12} \int \frac {x (16+21 x)}{\sqrt {1-x^2}} \, dx\\ &=-\frac {2}{3} x^2 \sqrt {1-x^2}-\frac {1}{4} x^3 \sqrt {1-x^2}-\frac {1}{24} (32+21 x) \sqrt {1-x^2}+\frac {7}{8} \int \frac {1}{\sqrt {1-x^2}} \, dx\\ &=-\frac {2}{3} x^2 \sqrt {1-x^2}-\frac {1}{4} x^3 \sqrt {1-x^2}-\frac {1}{24} (32+21 x) \sqrt {1-x^2}+\frac {7}{8} \sin ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 53, normalized size = 0.84 \begin {gather*} \frac {1}{24} \sqrt {1-x^2} \left (-32-21 x-16 x^2-6 x^3\right )+\frac {7}{4} \tan ^{-1}\left (\frac {x}{-1+\sqrt {1-x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 57, normalized size = 0.90
method | result | size |
risch | \(\frac {\left (6 x^{3}+16 x^{2}+21 x +32\right ) \left (x^{2}-1\right )}{24 \sqrt {-x^{2}+1}}+\frac {7 \arcsin \left (x \right )}{8}\) | \(37\) |
trager | \(\left (-\frac {1}{4} x^{3}-\frac {2}{3} x^{2}-\frac {7}{8} x -\frac {4}{3}\right ) \sqrt {-x^{2}+1}+\frac {7 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\RootOf \left (\textit {\_Z}^{2}+1\right ) \sqrt {-x^{2}+1}+x \right )}{8}\) | \(54\) |
default | \(-\frac {x^{3} \sqrt {-x^{2}+1}}{4}-\frac {7 x \sqrt {-x^{2}+1}}{8}+\frac {7 \arcsin \left (x \right )}{8}-\frac {2 x^{2} \sqrt {-x^{2}+1}}{3}-\frac {4 \sqrt {-x^{2}+1}}{3}\) | \(57\) |
meijerg | \(\frac {i \left (i \sqrt {\pi }\, x \sqrt {-x^{2}+1}-i \sqrt {\pi }\, \arcsin \left (x \right )\right )}{2 \sqrt {\pi }}+\frac {\frac {4 \sqrt {\pi }}{3}-\frac {\sqrt {\pi }\, \left (4 x^{2}+8\right ) \sqrt {-x^{2}+1}}{6}}{\sqrt {\pi }}-\frac {i \left (-\frac {i \sqrt {\pi }\, x \left (10 x^{2}+15\right ) \sqrt {-x^{2}+1}}{20}+\frac {3 i \sqrt {\pi }\, \arcsin \left (x \right )}{4}\right )}{2 \sqrt {\pi }}\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 56, normalized size = 0.89 \begin {gather*} -\frac {1}{4} \, \sqrt {-x^{2} + 1} x^{3} - \frac {2}{3} \, \sqrt {-x^{2} + 1} x^{2} - \frac {7}{8} \, \sqrt {-x^{2} + 1} x - \frac {4}{3} \, \sqrt {-x^{2} + 1} + \frac {7}{8} \, \arcsin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.77, size = 45, normalized size = 0.71 \begin {gather*} -\frac {1}{24} \, {\left (6 \, x^{3} + 16 \, x^{2} + 21 \, x + 32\right )} \sqrt {-x^{2} + 1} - \frac {7}{4} \, \arctan \left (\frac {\sqrt {-x^{2} + 1} - 1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 60, normalized size = 0.95 \begin {gather*} - \frac {x^{3} \sqrt {1 - x^{2}}}{4} - \frac {2 x^{2} \sqrt {1 - x^{2}}}{3} - \frac {7 x \sqrt {1 - x^{2}}}{8} - \frac {4 \sqrt {1 - x^{2}}}{3} + \frac {7 \operatorname {asin}{\left (x \right )}}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.03, size = 30, normalized size = 0.48 \begin {gather*} -\frac {1}{24} \, {\left ({\left (2 \, {\left (3 \, x + 8\right )} x + 21\right )} x + 32\right )} \sqrt {-x^{2} + 1} + \frac {7}{8} \, \arcsin \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 31, normalized size = 0.49 \begin {gather*} \frac {7\,\mathrm {asin}\left (x\right )}{8}-\sqrt {1-x^2}\,\left (\frac {x^3}{4}+\frac {2\,x^2}{3}+\frac {7\,x}{8}+\frac {4}{3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________